using Prism.Commands;
using Prism.Mvvm;
using Prism.Regions;
using Prism.Services.Dialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tools.Core;
using Tools.Services.Interfaces;

namespace Tools.ViewModels
{
    public class MainWindowViewModel : BindableBase
    {
        private readonly IDialogService _ds;
        private readonly IRegionManager _rm;

        private string _title = "Tools";
        public string Title
        {
            get { return _title; }
            set { SetProperty(ref _title, value); }
        }

        public DelegateCommand<string> RequestNavigationCommand { get; private set; }

        public MainWindowViewModel(IDialogService ds,IRegionManager rm)
        {
            _ds = ds;
            _rm = rm;
            RequestNavigationCommand = new DelegateCommand<string>(name =>
            {
                _rm.RequestNavigate(RegionNames.ContentRegion, name);
            });
        }
    }
}
